package com.example.demo.utils;


import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * @Description
 * @Author chenhuiyu
 */
@EnableScheduling
@Configuration
public class Cron {
    @Scheduled(cron = "0/5 * * * * ?")
    private void scheduledTest(){
//        System.out.println("TimedTasks scheduled");
//        System.err.println("scheduled");

    }
}
